<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/view/include/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="applicable-device" content="mobile">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta http-equiv="Expires" content="-1">
	<meta http-equiv="Cache-Control" content="no-cache">
	<meta name="application-name" content="">
	<link rel="stylesheet" href="${project}/ds/css/public.css"></link>
	<link rel="stylesheet" href="${project}/ds/css/index.css"></link>
	<link href="${project}/ds/css/swiper.min.css" type="text/css" rel="stylesheet"></link>
	<script type="text/javascript" src="${project}/ds/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript">
	$(function (){
		countTime();
	})
	 function readMx(){
		 window.location.href="/dingdan/ddxq";
	 }
	</script>
	<script type="text/javascript">
	 function countTime() {  
         //获取当前时间  
         var date = new Date();  
         var now = date.getTime();  
         //设置截止时间  
         var str="${StartTime}";
         var endDate = new Date(str); 
         var end = endDate.getTime();  
         
         //时间差  
         var leftTime = end-now; 
         //定义变量 d,h,m,s保存倒计时的时间  
         var h,m,s;  
         if (leftTime>=0) {  
             h = Math.floor(leftTime/1000/60/60);  
             m = Math.floor(leftTime/1000/60%60);  
             s = Math.floor(leftTime/1000%60);                     
         }  
         //将倒计时赋值到div中  
         $(".RemainH").html(h);
         $(".RemainM").html(m);
         $(".RemainS").html(s);
        
         //递归每秒调用countTime方法，显示动态时间效果  
         setTimeout(countTime,1000); 
     }  
    </script>
</head>
<body>
	<div class="center">
		<div class="b-index-w" style="padding-top:48px;">
			<nav class="menunav">
				<div class="menunav-w">
						<div class="nav-list ">
						  <a href="/fangyuan"><p class="f-n1"></p><span class="f-n-name">房源列表</span></a>
						</div>
						<div class="nav-list navon">
						  <a href="/dingdan"><p class="f-n2"></p><span class="f-n-name">我的订单</span></a>
						</div>
						<div class="nav-list">
						  <a href="/shoucang"><p class="f-n3"></p><span class="f-n-name">我的收藏</span></a>
						</div>
				</div>
			</nav>
			<div class="sub-dd clearfix">
					<div class="sub-d-left">公告</div>
					<div class="sub-d-right">
						<div class="subtimer">
							  <span class="RemainH Remain">0</span><span class="liksapn">时</span>
						 	  <span class="RemainM Remain">0</span><span class="liksapn">分</span>
						 	  <span class="RemainS Remain">0</span><span class="liksapn">秒后活动结束</span>
						</div>
					</div>
			</div>
			<div id="commonBody">
				<div class="b-dd-w">
					<div class="dd-w-title">
						<div class="dd-w-left"><span>下单时间:</span><span>${fymodel.getD_SaleDate()}</span></div>
					</div>
					<a href="#" class="dd-a-w">
						<div class="dd-w-cont">
							<div class="dd-w-w">
								<div class="dd-w-list clearfix">
									<div class="d-w-list-left">房&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</div>
									<div class="d-w-list-left">${fymodel.getD_BanName()}${fymodel.getD_Unit()}${fymodel.getD_RoomNo()}</div>
								</div>
								<div class="dd-w-list clearfix">
									<div class="d-w-list-left">证件号码：</div>
									<div class="d-w-list-left">${user.userCode}</div>
								</div>
								<div class="dd-w-list clearfix">
									<div class="d-w-list-left">可选套数：</div>
									<div class="d-w-list-left">5</div>
								</div>
							</div>
							<div class="dd-w-w">
								<div class="dd-w-list clearfix">
									<div class="d-w-list-left">职业顾问：</div>
									<div class="d-w-list-left">张三</div>
								</div>
								<div class="dd-w-list clearfix">
									<div class="d-w-list-left">顾问电话：</div>
									<div class="d-w-list-left">13208851298</div>
								</div>
							</div>
							<div class="dd-w-w" style="padding:.8rem 0;">
								<div class="dd-w-list clearfix" onclick="readMx()">
									<div class="d-w-list-left">订&nbsp;&nbsp;单&nbsp;&nbsp;号：</div>
									<div class="d-w-list-left" style="font-size:1.6rem;font-weight:bold;">${fymodel.getD_SerialNumber()}</div>
								</div>							
							</div>
						</div>
						<div class="yxg"><img src="${project}/ds/images/yrg.png"/></div>
					</a>
				</div>
				<div class="dc-btnn dc-btn-widtht">
					<a href="/logout">退出</a>
				</div>
			</div>
		</div>
	</div>
</body>
</html>